package com.bw.user.entity.from;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName BargainFrom
 * @Author Hao_YunKai
 * @Date 2022/3/15 15:10
 */
@Data
public class BargainFrom {
    /**
     * 砍价商品主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bargainId;
    /**
     * 商品主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long goodsId;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 商品图片
     */
    private String goodsImg;
    /**
     * 商品标题
     */
    private String goodsTitle;
    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;
    /**
     * 砍价库存
     */
    private BigDecimal stockCount;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    /**
     * 低价
     */
    private BigDecimal floorPrice;
    /**
     * 需要砍多少刀
     */
    private Integer knifeCount;
    /**
     * 每刀最多砍多少
     */
    private BigDecimal knifePrice;
    /**
     * 描述
     */
    private String bargainDescribe;
}
